package modalities;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.Observable;

public class Mouse extends Observable implements MouseListener {

	Decider boss;

	public Mouse(Decider boss)
	{
		this.boss = boss;
		addObserver(boss);
	}

	@Override
	public void mouseClicked(MouseEvent arg0) {
		setChanged();
		if(arg0.getButton() == MouseEvent.BUTTON3)
			notifyObservers(new Message(true, "shoot"));
	}

	//Unimplemented methodes
	@Override
	public void mouseEntered(MouseEvent arg0) {}
	@Override
	public void mouseExited(MouseEvent arg0) {}
	@Override
	public void mousePressed(MouseEvent arg0) {}
	@Override
	public void mouseReleased(MouseEvent arg0) {}
}
